import { createApp } from 'vue'

// 饿了么ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// pinia状态管理
import { createPinia } from 'pinia'

// 路由配置导入
import { router } from './router/index'

import App from './App.vue'

const app = createApp(App)

app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(createPinia())

app.mount('#app')
